home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / initscripts.postrm < prev    next >
Encoding:
Text File  |  2007-04-10  |  634 b   |  52 lines

  1. #! /bin/sh
  2. #
  3. # initscripts postrm
  4. #
  5.  
  6. set -e
  7.  
  8. case "$1" in
  9.   purge)
  10.     #
  11.     # Remove abandoned conffiles
  12.     #
  13.     rm -f \
  14.         /etc/init.d/bootclean.sh \
  15.         /etc/init.d/bootclean.sh.dpkg-old
  16.  
  17.     #
  18.     # Remove configuration files
  19.     #
  20.     rm -f \
  21.         /etc/default/rcS \
  22.         /etc/nologin \
  23.         /etc/motd.tail \
  24.         /etc/motd.static \
  25.         /etc/motd
  26.  
  27.     #
  28.     # Remove state files
  29.     #
  30.     rm -f /var/lib/initscripts/nologin
  31.  
  32.     #
  33.     # Remove run time state files
  34.     #
  35.     rm -f /var/run/motd
  36.  
  37.     #
  38.     # Remove log files
  39.     #
  40.     rm -f \
  41.         /var/log/dmesg \
  42.         /var/log/boot \
  43.         /var/log/fsck/checkroot \
  44.         /var/log/fsck/checkfs
  45.  
  46.     # Remove rc symlinks ?
  47.     # Remove /dev/pts and /dev/shm ?
  48.     ;;
  49. esac
  50.  
  51. :
  52.